<template>
    <el-container>
        <el-aside width="200px">
            <StElMenu :datas="menu"></StElMenu>
        </el-aside>
        <el-main>
            <router-view></router-view>
        </el-main>
    </el-container>
</template>

<script>
    import routes from './router/routes.js'

    export default {
        name: 'App',
        components: {
        },
        computed:{
            menu() {
                let r = []
                routes.forEach(item=>{
                    r.push({
                        id: item.path,
                        name: item.meta.name,
                        url: item.path,
                        isPage: true
                    })
                })
                return r
            }
        },
        data() {
            return {
            }
        },
        mounted(){

        },
        methods:{
        },
        watch:{

        }
    }
</script>

<style>

</style>
